package org.raymond.iworks.study.basic.designpattern.composite;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 * Department是叶子节点,不再有子节点需要管理,因此不需要实现add,remove等方法
 */
public class Department extends OrganizationComponent{
    public Department(String name, String des) {
        super(name, des);
    }

    @Override
    protected void print() {
        System.out.println(getName());
    }
}
